{include file='header.tpl'}
{include file='shop/leftshop.tpl'}
<div id="left-area">

    <div class="breadcrumb">
            <span class="raquo"></span><a href="/">Главная</a>
            <span class="raquo"> &raquo; </span><a href="{getsuburl route='shop' name=$shop->nameshop}">Магазин</a>   
            <span class="raquo"> &raquo; </span><a href="{getsuburl route='shopproduct' name=$shop->nameshop id=$products->getId()}">{$products->name}</a>   
        </div>

<div class="entry post clearfix width-for-all-img">
    <h1 class="category-title">{$products->name}</h1>
        <script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
        <div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="button" data-yashareQuickServices="vkontakte,facebook,twitter,odnoklassniki,moimir,lj,moikrug,gplus"></div>		
        <div id="et-slides">
             <div id="et-slides-items">
            <div class="et-slide" style="display: block;">
            <a href="{$products->image}" title="{$products->name}" class="fancybox" rel="single-gallery">
            <img src="{$products->thumb}" alt="{$products->name}" style="opacity: 1;width:249px;height:243px;"/>
            <span class="overlay"></span>
            <span class="magnify" style="opacity: 0; display: inline;"></span>
            </a>
            </div> 
                                    
                                <!-- #et-slide -->				
                            </div>
                            <!-- #et-slides-items -->
    <span class="price-tag"><span><font class="currency">{$currency}</font></span>   {$products->price}</span>
	
                           
                        </div>
                        <!-- #et-slides -->
						
                        <div class="item-description">
                            <div class="single-item-ratings clearfix"></div>
                            <!-- end .single-item-ratings -->
                           
                            <a class="single-addtocart et-shop-item" href="javascript:void();" onclick="addCart({$products->getId()},'cart');">В корзину</a>
                            {if $products->material}<div class="row"><label>Материал:</label> {$products->material}</div>{/if}
                            {if $products->size} <div class="row"><label>Размер:</label> {$products->size}</div>{/if}
                            {if $products->color} <div class="row"><label>Ключевые слова:</label> {$products->color}</div>{/if}
                            <div class="boutique_description_border">
                                <div class="boutique_description">
                                    <h4 class="description-title">{$products->name}</h4>
                                    <span class="price"><span class="currency">{$currency->name}</span> {$products->price}</span>
                                    <div class="clear"></div>
                                    <div class="entry-item-ratings clearfix"></div>
                                    <p>{$products->descr}</p>
                                </div> <!-- end .boutique_description -->
                            </div> <!-- end .boutique_description_border -->
                        </div> <!-- end .item-description -->

						
		<div  id="allimage">
		{if $products->files}
                    {foreach from=$products->files item=img}
                                    <a href="{$img->image}" title="{$products->name}" class="fancybox" rel="single-gallery">
                                        <img src="{$img->thumb}" alt="{$products->name}" style="opacity: 1;width:56px;height:56px;border:1px solid #A5A5A5;"/>
                                        <span class="overlay"></span>
                                        <span class="magnify" style="opacity: 0; display: inline;"></span>
                                    </a>
                                    {/foreach}
                                    {else}
                                        {literal}<style>
                                            #et-slides{background:none;}
                                            #et-single-left-arrow,#et-single-right-arrow{display:none !important;}
                                        </style>{/literal}
                                   {/if}
		</div>
                        <div class="clear"></div>
						
     <div id="tabs" class="htabs">
        <a href="#tab-1">
        Описание
        </a>
       
        <a href="#tab-2">
        Отзывы
        </a>
         <a href="#tab-3">
        Оплата/Доставка/Возврат
        </a>
    </div>
    <div id="tab-1" class="tab-content">{$products->descr}</div>
    
            <div id="tab-2" class="tab-content">
        <div id="review">
{if $products->reviews}
{foreach from=$products->reviews item=review}
<div class="review-list">
  <div class="author"><b>{$review->author}</b> от {$review->date_added}</div>
  <div class="rating"><img src="/images/stars-{$review->rating}.png" alt="{$review->reviews}" /></div>
  <div class="text">{$review->text}</div>
</div>
{/foreach}
<div class="pagination">{$pagination}</div>
{else}
<div class="content">Нет отзывов об этом товаре.</div>
{/if}
        </div>
        <form method="POST" action="" onsubmit="return validate_form();">
        <h2 id="review-title">Написать отзыв</h2>
        
        <b>Ваше Имя:</b><br />
        <input type="text" name="author" value="" />    
        <br />
        <br />
        <b>Ваш отзыв:</b>
        <textarea name="text" cols="40" rows="8" style="width: 98%;"></textarea>    
        <span style="font-size: 11px;"><span style="color: #FF0000;">Внимание:</span> HTML не поддерживается! Используйте обычный текст.</span>
        <br />
        <br />
        <b>Оценка:</b> <span>Плохо</span>&nbsp;
        <input type="radio" name="rating" value="1" />
        &nbsp;
        <input type="radio" name="rating" value="2" />
        &nbsp;
        <input type="radio" name="rating" value="3" />
        &nbsp;
        <input type="radio" name="rating" value="4" />
        &nbsp;
        <input type="radio" name="rating" value="5" />
        &nbsp;<span>Хорошо</span><br />
      
        <br />
        <!--<b>Введите код, указанный на картинке:</b> <img src="/utility/captcha" alt="CAPTCHA image" /><br />
        <input type="text" name="captcha" value="" />-->
        <input type="hidden" name="productId" value="{$products->getId()}" />

        <div class="buttons">
        <div class="right"><button id="button-review"  class="button"> Отправить</button></div>
        </div>
        </form>
        </div>
    
     
    
    <div id="tab-3" class="tab-content">
        <div class="row" >
       <label>Способы оплаты:</label>
             {if $shop->shop->pc2!=null} <input type="hidden" name="paymethod_id" value="Наличные"> <b>Наличные</b><br>
                    {$shop->shop->pc2}{/if}
                    {if $shop->shop->pc3!=null}<b>Банковский перевод на счёт</b><br>
                    {$shop->shop->pc3}{/if}
                    {if $shop->shop->pc4!=null} <b>Почтовый перевод</b><br>
                    {$shop->shop->pc4}{/if}
                    {if $shop->shop->pc5!=null} <b>Перевод на банковскую карту</b><br>
                    {$shop->shop->pc5}{/if}
                    {if $shop->shop->pc6!=null}  <b>Электронные платёжные системы</b><br>
                    {$shop->shop->pc6}{/if}
                    {if $shop->shop->pc7!=null}  <b>Система денежных переводов</b><br>
                    {$shop->shop->pc7}{/if}
                    {if $shop->shop->pc8!=null} <b>Пополнение счёта мобильного телефона</b><br>
                    {$shop->shop->pc8}{/if}
                    {if $shop->shop->pc9!=null} <b>Наложенный платёж</b><br>
                    {$shop->shop->pc9}{/if}
                    {if $shop->shop->pc10!=null}<b>Другие условия оплаты</b><br>
                    {$shop->shop->pc10}{/if}
        </div>
        
        <div class="row" >
       <label>Способы доставки:</label>
                     {if $shop->shop->pc21!=null}  <b>Самовывоз</b><br>
                    {$shop->shop->pc21}{/if}
                    {if $shop->shop->pc22!=null}  <b>Доставка курьером</b><br>
                    {$shop->shop->pc22}{/if}
                    {if $shop->shop->pc23!=null}  <b>Почтовая служба</b><br>
                    {$shop->shop->pc23}{/if}
        </div>
        
       <div class="row" >
       <label>Условия обмена и возврата:</label>
         {$shop->shop->refund}
        </div>
    </div>
{literal}
<script type="text/javascript" src="/catalog/view/javascript/jquery/jquery.cycle.js"></script>
<script type="text/javascript">
jQuery(document).ready(function() {
    jQuery(".fancybox").fancybox();
});
</script>
<script type="text/javascript"><!--
$('#review .pagination a').live('click', function() {
	$('#review').fadeOut('slow');
		
	$('#review').load(this.href);
	
	$('#review').fadeIn('slow');
	
	return false;
});			
function validate_form()
{
    
var author = $('input[name=\'author\']').val();
var text = $('textarea[name=\'text\']').val();
if(author!='')
{
  alertify.alert('Введите имя'); 
  return false;
}
if(text!='')
{
  alertify.alert('Введите отзыв');  
  return false;
}
return true;
}

//--></script>
<script type="text/javascript"><!--
$('#tabs a').tabs();
//--></script>
{/literal}
 </div>
{include file='footer.tpl'}